package org.example.exception;


import org.example.dao.commom.ResultCode;

/**
 * 验证通过异常（仅用于SpringSecurity过滤器）
 */
public class PassErrorException extends RuntimeException implements BaseException {

    String msg;

    public PassErrorException(String message){
        msg = message;
    }

    /**
     * 不写入堆栈信息，提高性能
     */
    @Override
    public Throwable fillInStackTrace() {
        return null;
    }


    @Override
    public String getMsg() {
        return msg;
    }

    @Override
    public ResultCode getCode() {
        return ResultCode.PASS_ERROR;
    }
}
